import java.util.Arrays;

public class TestParaTrans {
    static class Dog {
        private String name;
        public Dog(String name) {
            this.name = name ;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }
    }

    private static void fun(Dog dog) {
        System.out.println("dog = " + dog);
        dog = new Dog("B");
        System.out.println("dog = " + dog + "   dog.name:" + dog.name);
    }

    public static void main(String[] args) {
        Dog dog = new Dog("A");
        System.out.println("dog = "  + dog);
        fun(dog);
        System.out.println("args = " + dog + " dog name:" + dog.name);
    }
}
